package com.zgf.SingleList;

import com.zgf.lineTable.List;

/**
 * @author zgf
 * @date 2019/8/27 19:44
 */
public class TestSingleList {

    public static void main(String[] args) {
        List list=new SingleLinkedList();

        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(4,200);



        System.out.println(list.replace(3,100));
        System.out.println(list.get(4));
        System.out.println("是否为空："+list.isEmpty());
        System.out.println("SingleList的长度是:"+list.size());
        System.out.println(list.remove(4));
        System.out.println("SingleList的长度是:"+list.size());
        System.out.println(list.toString());



    }
}
